Optimal. Leaf size=39 \[ -\frac{1}{2} i b \text{PolyLog}\left (2,-\frac{i c}{x}\right )+\frac{1}{2} i b \text{PolyLog}\left (2,\frac{i c}{x}\right )+a \log (x) \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.0448919, antiderivative size = 39, normalized size of antiderivative = 1., number of steps used = 4, number of rules used = 3, integrand size = 14, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.214, Rules used = {5031, 4848, 2391} \[ -\frac{1}{2} i b \text{PolyLog}\left (2,-\frac{i c}{x}\right )+\frac{1}{2} i b \text{PolyLog}\left (2,\frac{i c}{x}\right )+a \log (x) \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 5031
Rule 4848
Rule 2391
Rubi steps
\begin{align*} \int \frac{a+b \tan ^{-1}\left (\frac{c}{x}\right )}{x} \, dx &=-\operatorname{Subst}\left (\int \frac{a+b \tan ^{-1}(c x)}{x} \, dx,x,\frac{1}{x}\right )\\ &=a \log (x)-\frac{1}{2} (i b) \operatorname{Subst}\left (\int \frac{\log (1-i c x)}{x} \, dx,x,\frac{1}{x}\right )+\frac{1}{2} (i b) \operatorname{Subst}\left (\int \frac{\log (1+i c x)}{x} \, dx,x,\frac{1}{x}\right )\\ &=a \log (x)-\frac{1}{2} i b \text{Li}_2\left (-\frac{i c}{x}\right )+\frac{1}{2} i b \text{Li}_2\left (\frac{i c}{x}\right )\\ \end{align*}
Mathematica [A] time = 0.0056957, size = 39, normalized size = 1. \[ -\frac{1}{2} i b \text{PolyLog}\left (2,-\frac{i c}{x}\right )+\frac{1}{2} i b \text{PolyLog}\left (2,\frac{i c}{x}\right )+a \log (x) \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [B] time = 0.036, size = 94, normalized size = 2.4 \begin{align*} -a\ln \left ({\frac{c}{x}} \right ) -b\ln \left ({\frac{c}{x}} \right ) \arctan \left ({\frac{c}{x}} \right ) -{\frac{i}{2}}b\ln \left ({\frac{c}{x}} \right ) \ln \left ( 1+{\frac{ic}{x}} \right ) +{\frac{i}{2}}b\ln \left ({\frac{c}{x}} \right ) \ln \left ( 1-{\frac{ic}{x}} \right ) -{\frac{i}{2}}b{\it dilog} \left ( 1+{\frac{ic}{x}} \right ) +{\frac{i}{2}}b{\it dilog} \left ( 1-{\frac{ic}{x}} \right ) \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F] time = 0., size = 0, normalized size = 0. \begin{align*} b \int \frac{\arctan \left (c, x\right )}{x}\,{d x} + a \log \left (x\right ) \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [F] time = 0., size = 0, normalized size = 0. \begin{align*}{\rm integral}\left (\frac{b \arctan \left (\frac{c}{x}\right ) + a}{x}, x\right ) \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F] time = 0., size = 0, normalized size = 0. \begin{align*} \int \frac{a + b \operatorname{atan}{\left (\frac{c}{x} \right )}}{x}\, dx \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [F] time = 0., size = 0, normalized size = 0. \begin{align*} \int \frac{b \arctan \left (\frac{c}{x}\right ) + a}{x}\,{d x} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]